package net.lzzy.lxq.server;

import net.lzzy.lxq.dao.MonitorMapper;
import net.lzzy.lxq.entities.MonitorDevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MonitorDeviceService {

    @Autowired
    MonitorMapper mapper;

    public MonitorDevice getMonitorDevice(String deviceId){
        return mapper.getMonitorDevice(deviceId);
    }

    public MonitorDevice getMonitorDeviceByAddress(String address){
        return mapper.getMonitorDeviceByAddress(address);
    }

    public List<MonitorDevice> getAllMonitors(){
        return mapper.getAllMonitors();
    }
}
